let list = ["女生组2", "女生组1", "男生组2", "男生组1"]
let haveOther = list.find(key => {
    let bool1=key.indexOf("男生组") == -1
    let bool2=key.indexOf("女生组") == -1
    let bool=bool1||bool2
    return bool
})

console.log(haveOther)


console.log("女生组2".indexOf("女生组"))